package entity.salary;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_payrollmodel")
public class Payrollmodel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("sa_id")
    private Integer saId;

    /**
     * 工资单名称
     */
    @TableField("model_name")
    private String modelName;

    /**
     * 关联薪资方案
     */
    @TableField("scheme_id")
    private Integer schemeId;

    /**
     * 工资单状态(1禁用，0启用)
     */
    @TableField("payroll_status")
    private Integer payrollStatus;

    /**
     * 薪资项为0（0显示1不显示)
     */
    @TableField("item_status")
    private Integer itemStatus;

    /**
     * 薪资项为空(0显示1不显示)
     */
    @TableField("item_null")
    private Integer itemNull;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


}
